package servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/goodsServlet")
public class GoodsServlet extends BaseServlet {

    protected void delete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String opr=req.getParameter("opr");
        System.out.println("------------GoodsServlet:"+opr);
        resp.getWriter().print("<h1 style='color:blue'>------------UserServlet:"+opr+"------------<h1>");
    }

        protected void insert(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        String opr=req.getParameter("opr");
        System.out.println("------------GoodsServlet:"+opr);
        resp.getWriter().print("<h1 style='color:blue'>------------UserServlet:"+opr+"------------<h1>");
    }

}
